.container {
    position: relative;
    padding: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    color: #000;
    padding: 20px;
    height: 100%;
    padding-bottom: 40px;
    z-index: 1;
    margin-top: 20px;
    margin-bottom: 20px;
    user-select: none; /* 防止拖动时选中文本 */
    cursor: grab;
    touch-action: none; /* 防止浏览器默认的触摸行为 */
    height: 620px;

    .content {
        /* overflow: hidden; */
        /* overflow-y: auto; */
        /* overflow-x: auto; */
        display: flex;
        /* flex-direction: column; */
        gap: 40px;
        height: 100%;
        width: 100%;
        flex-wrap: wrap;
        position: relative;
        z-index: 1;
        width: 790px;
        height: auto;
        /* max-width: 790px; */
        /* padding-left: 210px; */
        /*  */
        /* 隐藏滚动条样式 */
        /* scrollbar-width: none; */
        /* -ms-overflow-style: none; */
        will-change: transform, padding; /* 提示浏览器这些属性会变化，优化性能 */
        transition: transform 0.3s ease, padding 0.3s ease;
    }

    .content-wrapper {
        position: relative;
        overflow: hidden;
        height: 100%;
        width: 100%;
        margin: 0 auto; /* 居中显示 */
        max-width: 100%;
    }

    .title {
        position: relative;
        z-index: 1;
    }

    .desc {
        font-size: 14px;
    }

    position: relative;

    .bg {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 0;
    }
}

/* 控制面板样式 */
.control-panel {
    position: absolute;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 100;
}

.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.navigation-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.horizontal-controls {
    display: flex;
    gap: 10px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(14, 55, 80, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    touch-action: manipulation; /* 优化移动端点击 */
}

.control-btn:hover {
    background-color: rgba(14, 55, 80, 1);
    transform: scale(1.1);
}

.reset-btn {
    margin-top: 10px;
    background-color: rgba(16, 48, 68, 0.8);
}

/* 交互元素保持指针样式 */
.control-btn, .submodule, .module, .bar {
    cursor: pointer;
    touch-action: manipulation; /* 优化移动端点击 */
}

/* 确保模块和子模块中的文本依然可以选择 */
.module, .submodule {
    user-select: text;
}

.bottom-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70px;
    color: #FFF;
    padding: 20px;
    font-size: 18px;
    font-weight: bold;
    z-index: 2;
    align-items: center;
    justify-content: space-between;
    /* 增加渐变 */
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);

    .right {
        justify-content: flex-end;
        display: flex;
        gap: 20px;
        margin-right: 20px;

        .bar {
            display: flex;
            gap: 10px;
            align-items: center;
            white-space: nowrap;

            .green-circle {
                width: 26px;
                height: 26px;
                border-radius: 50%;
                background-color: #4CAF50;
            }
        }

        .red-circle {
            width: 26px;
            height: 26px;
            border-radius: 50%;
            background-color: #f44336;
        }
    }

}

.row {
    display: flex;
    justify-content: center;
    /* height: 170px; */
    margin: 0 20px;
    gap: 70px;
    flex-grow: 0;
}

.module {
    background-color: rgba(14, 55, 80, 1);
    padding: 15px;
    width: 250px;
    /* height: 170px; */
    box-sizing: border-box;
    position: relative;
    gap: 10px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    border: 2px solid rgba(255, 255, 255, 1) !important;
    border-radius: 14px;
    color: #fff;
}

.empty-module {
    padding: 15px;
    width: 250px;
    /* height: 170px; */
    box-sizing: border-box;
}

.blue-border {
    border: 2px solid #000;
}

.gray-border {
    border: 2px solid #666;
}

.submodule {
    padding: 10px;
    /* margin-bottom: 10px; */
    position: relative;
    border: 2px solid rgba(255, 255, 255, 1);
    border-radius: 14px;
    background-color: rgb(16, 48, 68);
    color: #FFF;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 10px;
}

.status-green {
    background-color: #4CAF50;
}

.status-red {
    background-color: #f44336;
}

.update-time {
    font-size: 12px;
    color: #EEE;
    margin-top: 5px;
}

.tooltip {
    position: fixed;
    background: rgba(0, 24, 51, 0.9);
    border: 1px solid rgba(0, 180, 255, 0.3);
    padding: 15px;
    border-radius: 8px;
    font-size: 14px;
    color: #fff;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: row;
    /* 改为row方向 */
    flex-wrap: wrap;
    gap: 10px;
    z-index: 100000;
    max-width: 775px;
}

.tooltip-content {
    display: flex;
    flex-direction: column;
    background-color: #0a0a0a7a;
    gap: 8px;
    width: calc(33% - 5px);
    /* 调整宽度,减小间距 */
    min-width: 225px;
}

.tooltip-card {
    padding: 10px;
    border-radius: 8px;
}

.tooltip-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    white-space: nowrap;
    gap: 10px;
}

.tooltip-label {
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tooltip-value {
    color: #fff;
    font-weight: 500;
    display: flex;
    align-items: center;
}

.parameter {
    margin: 5px 0;
}

.to-right-arrow {
    transform: translate(100%, -50%) rotate(180deg);
    width: 70px;
    position: absolute;
    top: 50%;
    right: 0;
}

.to-bottom-arrow {
    transform: translate(-50%, 0);
    height: 40px;
    position: absolute;
    bottom: -40px;
    left: 50%;
}

.dec-bg {
    position: absolute;
    bottom: -40px;
    left: -70px;
    width: 480px;
}

/* 控制面板在移动端的样式优化 */
@media (max-width: 768px) {
    .control-panel {
        right: 15px;
        bottom: 80px;
    }
    
    .control-btn {
        width: 36px;
        height: 36px;
    }
}